#--coding:utf-8--


import MySQLdb
con = MySQLdb.connect(host='master',user='root',passwd='123456',db='db1')
cursor =con.cursor()
sql ="select * from employee limit 10"
cursor.execute(sql)

row=cursor.fetchone()
print row
cursor.close()
con.close()